package com.csun.cmny.provider.pojo;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

public class CacBaseBigItem implements Serializable {
    private Integer bigItemId;

    private Integer cacTypeId;

    private String name;

    private String instruction;

    private Long groupId;

    private Integer type;

    private Integer valid;

    private Date createTime;

    private Date modifyTime;

    private Long modifier;

    private List<CacBaseMinorItem> cacBaseMinorItemList;

    private static final long serialVersionUID = 1L;

    public Integer getBigItemId() {
        return bigItemId;
    }

    public void setBigItemId(Integer bigItemId) {
        this.bigItemId = bigItemId;
    }

    public Integer getCacTypeId() {
        return cacTypeId;
    }

    public void setCacTypeId(Integer cacTypeId) {
        this.cacTypeId = cacTypeId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getInstruction() {
        return instruction;
    }

    public void setInstruction(String instruction) {
        this.instruction = instruction;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getValid() {
        return valid;
    }

    public void setValid(Integer valid) {
        this.valid = valid;
    }

    public Long getGroupId() {
        return groupId;
    }

    public void setGroupId(Long groupId) {
        this.groupId = groupId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    public Long getModifier() {
        return modifier;
    }

    public void setModifier(Long modifier) {
        this.modifier = modifier;
    }

    public List<CacBaseMinorItem> getCacBaseMinorItemList() {
        return cacBaseMinorItemList;
    }

    public void setCacBaseMinorItemList(List<CacBaseMinorItem> cacBaseMinorItemList) {
        this.cacBaseMinorItemList = cacBaseMinorItemList;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        CacBaseBigItem other = (CacBaseBigItem) that;
        return (this.getBigItemId() == null ? other.getBigItemId() == null : this.getBigItemId().equals(other.getBigItemId()))
                && (this.getCacTypeId() == null ? other.getCacTypeId() == null : this.getCacTypeId().equals(other.getCacTypeId()))
                && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
                && (this.getInstruction() == null ? other.getInstruction() == null : this.getInstruction().equals(other.getInstruction()))
                && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
                && (this.getValid() == null ? other.getValid() == null : this.getValid().equals(other.getValid()))
                && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
                && (this.getModifyTime() == null ? other.getModifyTime() == null : this.getModifyTime().equals(other.getModifyTime()))
                && (this.getModifier() == null ? other.getModifier() == null : this.getModifier().equals(other.getModifier()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getBigItemId() == null) ? 0 : getBigItemId().hashCode());
        result = prime * result + ((getCacTypeId() == null) ? 0 : getCacTypeId().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getInstruction() == null) ? 0 : getInstruction().hashCode());
        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
        result = prime * result + ((getValid() == null) ? 0 : getValid().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getModifyTime() == null) ? 0 : getModifyTime().hashCode());
        result = prime * result + ((getModifier() == null) ? 0 : getModifier().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", bigItemId=").append(bigItemId);
        sb.append(", cacTypeId=").append(cacTypeId);
        sb.append(", name=").append(name);
        sb.append(", instruction=").append(instruction);
        sb.append(", type=").append(type);
        sb.append(", valid=").append(valid);
        sb.append(", createTime=").append(createTime);
        sb.append(", modifyTime=").append(modifyTime);
        sb.append(", modifier=").append(modifier);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}